put "Sinulle on postia." after card field "UserMEssage"
end if
end repeat
if Cstate = "in" then
get first word of card field "Node Name" of card "config"
put it into computer
put "Olet nyt käyttämässä konetta " & computer & " ja voit lähettää ja vastaanottaa kirjeitä." into card field "UserMessage"
--show button id 29
--show button id 28
--show button id 31
else
if Language is "English" then
put "Connection failed." && "Speed/line/stack problem." && "Stack is using speed " && CommSPeed && "baud." into card field "UserMEssage"
else
put "Yhteydenotto epäonnistui." && "Voi olla että yhteydessä tai" && "kohdekoneessa on jokin vika. Pinon käyttämä linjanopeus on" && CommSPeed && "baudia." into card field "UserMEssage"
end if
end if
closeascii
end if
put true into XonXoff
talk "Olen valmis.",120,120
visual effect dissolve
go card "card1"
end mouseup
-- part 42 (button)
-- low flags: 00
-- high flags: A000
-- rect: left=7 top=142 right=190 bottom=146
-- title width / last selected line: 0
-- icon id / first selected line: 31880 / 31880
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Kèènnè buttonit suomeksi
----- HyperTalk script -----
on mouseUp
global STOPIT
if "engl" is in name of me then
put 1 into i1
put 2 into i2
else
put 2 into i1
put 1 into i2
end if
BGButtons i1,i2
CardButtons i1,i2
go card "card0"
end mouseUp
on BGButtons i1,i2
global STOPIT
put number of backgrounds into NC
repeat with c = 1 to NC
if number of this background is not c then
go background c
end if
put number of background buttons into NB
--put NB && NC
put number of lines of card field "translate" of card "translate" into NL
repeat with B = 1 to NB
put "Card " & C & " button " & B
put short name of background button B into Bname
put false into OK
repeat with L=1 to NL
if Bname is item i1 of line L of card field "translate" of card "translate" then
put true into OK
exit repeat
end if
end repeat
if OK then
get item i2 of line L of card field "translate" of card "translate"
set name of background button B to it
--put "set name of " && B && "to" && it
else
ask Bname & " = ?"
if it is empty then
answer "Interrupted"
exit BGButtons
end if
if it is not empty then
set name of background button B to it
end if
put Bname & "," & it & return after card field "translate" of card "translate"
end if
end repeat
go card c
end repeat
end BGButtons
on CardButtons i1,i2
global STOPIT
put number of cards into NC
repeat with c = 1 to NC
if number of this card is not c then
go card c
end if
put number of card buttons into NB
--put NB && NC
put number of lines of card field "translate" of card "translate" into NL
repeat with B = 1 to NB
put "Card " & C & " button " & B
put short name of card button B into Bname
put false into OK
repeat with L=1 to NL
if Bname is item i1 of line L of card field "translate" of card "translate" then
put true into OK
exit repeat
end if
end repeat
if OK then
get item i2 of line L of card field "translate" of card "translate"
set name of card button B to it
--put "set name of " && B && "to" && it
else
ask Bname & " = ?"
if it is empty then
answer "Interrupted"
exit CardButtons
end if
if it is not empty then
set name of card button B to it
end if
put Bname & "," & it & return after card field "translate" of card "translate"
end if
end repeat
go card c
end repeat
end CardButtons
-- part 22 (field)
-- low flags: 01
-- high flags: 2002
-- rect: left=221 top=120 right=173 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: UserMessage
-- part 15 (button)
-- low flags: 00
-- high flags: A000
-- rect: left=223 top=59 right=111 bottom=336
-- title width / last selected line: 0
-- icon id / first selected line: 27056 / 27056
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Change parameters
----- HyperTalk script -----
on mouseup
go card "Config"
end mouseup
-- part 23 (button)
-- low flags: 00
-- high flags: A000
-- rect: left=7 top=294 right=342 bottom=50
-- title width / last selected line: 0
-- icon id / first selected line: 1011 / 1011
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseup
go home
end mouseup
-- part 24 (button)
-- low flags: 00
-- high flags: A000
-- rect: left=50 top=294 right=342 bottom=117
-- title width / last selected line: 65535
-- icon id / first selected line: -15744 / 49792
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Quit HC
----- HyperTalk script -----
on mouseup
global CommSpeed,CommPrompt, NodeName, NodeType, Username
openascii
if NodeType is "vms" then
writeascii "set term/vt100/echo/page=24" & return
else
writeascii "set term=vt100" & return
wait 30
writeascii "stty rows 24" & return
end if
displayscreen "dis",CommPrompt
domenu "quit hypercard"
end mouseup
-- part 25 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=223 top=327 right=339 bottom=285
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 4
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: LineCount
-- part 30 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=176 top=249 right=342 bottom=221
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: Connection
-- part 32 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=411 top=318 right=342 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Speak Text
----- HyperTalk script -----
on mouseUp
ReadField1
end mouseUp
-- part 34 (button)
-- low flags: 00
-- high flags: A000
-- rect: left=454 top=26 right=73 bottom=501
-- title width / last selected line: 0
-- icon id / first selected line: 21060 / 21060
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Help
----- HyperTalk script -----
on mouseup
go card "Ohjeita"
end mouseup
-- part 36 (button)
-- low flags: 00
-- high flags: A000
-- rect: left=454 top=72 right=119 bottom=501
-- title width / last selected line: 65535
-- icon id / first selected line: -15743 / 49793
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: PANIC
----- HyperTalk script -----
on mouseup
PANIC
end mouseup
-- part 37 (field)
-- low flags: 80
-- high flags: 2004
-- rect: left=28 top=22 right=289 bottom=479
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 16384
-- line height: 16
-- part name: Anna PWD
-- part 38 (field)
-- low flags: 80
-- high flags: 2004
-- rect: left=154 top=156 right=179 bottom=324
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 0
-- text size: 12
-- style flags: 256
-- line height: 16
-- part name: PWD
-- part contents for card part 22
----- text -----
**** PAINA NAPPULAA "AVAA YHTEYS" ****
-- part contents for card part 25
----- text -----
Lines 7
-- part contents for card part 37
----- text -----
Kirjoita salasanasi.
(Input your password here)
(Se kirjoittuu •-merkkeinä alla olevaan kenttään)